package com.dailyblue.java.project.community;

import com.dailyblue.project.estate.commons.handler.TimeHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableDiscoveryClient
@EnableCaching
public class EstateCommunityApplication {
    @Bean
    public TimeHandler getTimeHandler() {
        return new TimeHandler();
    }

    public static void main(String[] args) {
        SpringApplication.run(EstateCommunityApplication.class, args);
    }
}